package com.yixing.tech.system.service;

import com.yixing.tech.common.base.BusinessException;
import com.yixing.tech.common.base.IBaseService;
import com.yixing.tech.common.vo.s3.TenantVO;
import com.yixing.tech.common.vo.s3.UserVO;

import java.util.List;

/**
 * @author yixing tech
 * at 2021/12/20
 * describe：
 */
public interface ITenantService extends IBaseService<TenantVO, TenantVO> {

    /**
     * 添加子组织
     * @param vo
     * @throws BusinessException
     */
    void addChild(TenantVO vo)throws BusinessException;
    void freezeOrUnFreeze(String tenantId,boolean isFreeze) throws BusinessException;

    List<UserVO> getAdminList(String tenantId);

    void syncWxPublicInfo(String tenantId) throws BusinessException;

}
